rule of three (mathematics)